@echo off
mkdir nginx\ssl 2>nul

echo 生成 SSL 证书...
openssl req -x509 -nodes -days 365 -newkey rsa:2048 ^
-keyout nginx/ssl/server.key ^
-out nginx/ssl/server.crt ^
-subj "/C=CN/ST=State/L=City/O=Organization/CN=localhost"

echo SSL 证书生成完成！ 